﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="QuanLyChuyenBay.aspx.cs" Inherits="AirPlane.QuanLyChuyenBay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
        	width:100%;
        	
        }
        .style2
        {
            width: 385px;
            
            
        }
         </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style = "margin:10px;margin-right:20px">
<h3 class="page-title-517">QUẢN LÝ CHUYẾN BAY</h3>
</div>
<div id="tabs">
    <ul>
        <li><a href="#tabs-1">Thêm Chuyến Bay Mới</a></li>
        <li><a href="#tabs-2">Cập Nhật Chuyến Bay</a></li>
       
    </ul>
    <div id="tabs-1">
        <table align="center" class="style1">
      
     
        <tr>
            <td colspan="2">
             
            <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label>
             </td>
        </tr>
        <tr>
      
              <td colspan="2">               
     
              <span style="margin-left:93px">
                Chặng Bay: 
                <asp:DropDownList ID="ddlChangBay" runat="server"  
                  CssClass="ddlChangBay" >
              </asp:DropDownList>
              </span></td>
              </tr>
          <tr>
            <td class="style2">
             <span style="margin-left:105px;">
             Ngày Đi : <asp:TextBox ID="txt_ngayDi_ChuyenBay" runat="server" CssClass="ddlngay1"></asp:TextBox>
             </span>
            </td>
            <td>
              <span style="margin-left:25px;">
             Ngày Đến: <asp:TextBox ID="txt_ngayDen_ChuyenBay" runat="server" CssClass="ddlngay1"></asp:TextBox>
             </span>
             </td>
        </tr>
        
        <tr>
            <td class="style2">
             <span style="margin-left:115px;">
             Giờ Đi : <asp:DropDownList ID="ddlGioDi" runat="server"  CssClass="ddlPhutGio" >
                    <asp:ListItem Selected="True">0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                </asp:DropDownList>
             
             Phút Đi :<asp:DropDownList ID="ddlPhutDi" runat="server"  CssClass="ddlPhutGio" >
                    <asp:ListItem Selected="True">0</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                    <asp:ListItem>35</asp:ListItem>
                    <asp:ListItem>40</asp:ListItem>
                    <asp:ListItem>45</asp:ListItem>
                    <asp:ListItem>50</asp:ListItem>
                    <asp:ListItem>55</asp:ListItem>
                   
                </asp:DropDownList>
             </span>
            </td>
            <td>
              <span style="margin-left:35px;margin-top:10px">
             Giờ Đến:<asp:DropDownList ID="ddlGioDen" runat="server"  CssClass="ddlPhutGio" >
                    <asp:ListItem Selected="True">0</asp:ListItem>
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                    <asp:ListItem>9</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>11</asp:ListItem>
                    <asp:ListItem>12</asp:ListItem>
                    <asp:ListItem>13</asp:ListItem>
                    <asp:ListItem>14</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>16</asp:ListItem>
                    <asp:ListItem>17</asp:ListItem>
                    <asp:ListItem>18</asp:ListItem>
                    <asp:ListItem>19</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>21</asp:ListItem>
                    <asp:ListItem>22</asp:ListItem>
                    <asp:ListItem>23</asp:ListItem>
                </asp:DropDownList>
                Phút Đi :<asp:DropDownList ID="ddlPhutDen" runat="server"  CssClass="ddlPhutGio" >
                    <asp:ListItem Selected="True">0</asp:ListItem>
                    <asp:ListItem>5</asp:ListItem>
                    <asp:ListItem>10</asp:ListItem>
                    <asp:ListItem>15</asp:ListItem>
                    <asp:ListItem>20</asp:ListItem>
                    <asp:ListItem>25</asp:ListItem>
                    <asp:ListItem>30</asp:ListItem>
                    <asp:ListItem>35</asp:ListItem>
                    <asp:ListItem>40</asp:ListItem>
                    <asp:ListItem>45</asp:ListItem>
                    <asp:ListItem>50</asp:ListItem>
                    <asp:ListItem>55</asp:ListItem>
                   
                </asp:DropDownList>
             </span>
             </td>
        </tr>
        <tr>
         <td colspan="2">
             <span style="margin-left:20px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                Số Hiệu Máy Bay: <asp:DropDownList ID="ddlSoHieuMB" runat="server"  
                  CssClass="ddlSanBay1" >
              </asp:DropDownList></span></td>
            
        </tr>
        <tr>
        
            <td colspan="2">
              <span id ="span-price-ticket">  Giá Vé:</span>(đơn vị tiền SGD)<br/>
              <span style="margin-left:68px">
             Hạng Thương Gia: <asp:TextBox ID="txtThuongGia" runat="server" CssClass="txtHang-DichVu" Text = "0"></asp:TextBox>
             Hạng Phổ Thông: <asp:TextBox ID="txtPhoThong" runat="server" CssClass="txtHang-DichVu" Text = "0"></asp:TextBox>
             Hạng Tiết Kiệm: <asp:TextBox ID="txtTietKiem" runat="server" CssClass="txtHang-DichVu" Text = "0"></asp:TextBox>
             </span>
             </td>
             
        </tr>
        <tr>
            <td class="style2">
             <span style="margin-left:25px;">
             Chi Phí Dự Kiến(SGD):<asp:TextBox ID="txtChiPhiDuKien" runat="server" CssClass="ddlngay1" Text = "0"></asp:TextBox>
             </span>
            </td>
            <td>
             
             </td>
        </tr>
        <tr>
         <td>
         <asp:Button ID="btnThemMoi" runat="server" Text="Thêm Mới" 
                 CssClass="button-insert-info-chuyenbay" onclick="btnThemMoi_Click"/>
         </td>
            
         <td>
            
         </td>
        </tr>
        </table>
    </div>
    <div id="tabs-2">
       <table align="center" class="style1">
        <tr>
            <td colspan="2">
             
            <asp:Label ID="lbThongBaoCapNhat" runat="server" Text=""></asp:Label>
             </td>
        </tr>
        <tr>
      
              <td colspan="2">               
     
              <span style="margin-left:93px">
                Chặng Bay: 
                <asp:DropDownList ID="ddlChangBay_update" runat="server"  
                  CssClass="ddlChangBay" >
              </asp:DropDownList>
              </span></td>
              </tr>
          <tr>
            <td class="style2">
             <span style="margin-left:105px;">
             Ngày Đi : <asp:TextBox ID="txtNgayDi_chuyenBay_capNhat" runat="server" CssClass="ddlngay1"></asp:TextBox>
             </span>
            </td>
           <td></td>
       
        </tr>
       </table>

        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <table align="center" class="style1">   
        <tr>
        <td  class="style2"></td>
         <td>
                <asp:Button ID="btn_timKiem_capNhat" runat="server" Text="Tìm Kiếm" 
                    CssClass="button-change" onclick="btn_timKiem_capNhat_Click" />
            </td>
        </tr>
        </table>
       

        <div id="search-cap-nhat-chuyen-bay">
         <asp:Label ID="lbThongBaoCapNhatChuyenBay" runat="server" Text=""></asp:Label>
    <asp:GridView ID="gwChuyenBayUpdate" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" GridLines="None" ForeColor="#333333" Width="880px" 
             DataKeyNames="ID_chuyenBay" 
             ShowFooter="True" onpageindexchanging="gwChuyenBayUpdate_PageIndexChanging" 
                onrowcancelingedit="gwChuyenBayUpdate_RowCancelingEdit" 
                onrowediting="gwChuyenBayUpdate_RowEditing" 
                onrowupdating="gwChuyenBayUpdate_RowUpdating">
        <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:TemplateField HeaderText="ID">
                 <ItemTemplate>
                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID_chuyenBay") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="50px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Ngày Đi">
                
               
                 <ItemTemplate>
                     <asp:Label ID="Label2" runat="server" Text='<%# Bind("ngayDi") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="80px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Giờ Đi">
              
                 <ItemTemplate>
                     <asp:Label ID="Label3" runat="server" Text='<%# Bind("gioDi") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="60px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Ngày Đến">
                
                
                 <ItemTemplate>
                     <asp:Label ID="Label4" runat="server" Text='<%# Bind("ngayDen") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="80px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Giờ Đến">
                 
                 <ItemTemplate>
                     <asp:Label ID="Label5" runat="server" Text='<%# Bind("gioDen") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="60px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Sân Bay Đi">
              
              
                 <ItemTemplate>
                     <asp:Label ID="Label6" runat="server" Text='<%# Bind("ID_sanBayDi") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Sân Bay Đến">
                 <ItemTemplate>
                     <asp:Label ID="Label7" runat="server" Text='<%# Bind("ID_sanBayDen") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle Width="100px" />
             </asp:TemplateField>
              <asp:TemplateField HeaderText="Nhiên Liệu Tiêu Thụ">
                  <EditItemTemplate>
                      <asp:TextBox ID="txtnhieuLieu" runat="server" Width="80px"  Text='<%# Bind("nhienLieuTieuThu") %>'></asp:TextBox>
                  </EditItemTemplate>
                 <ItemTemplate>
                     <asp:Label ID="Label8" runat="server" Text='<%# Bind("nhienLieuTieuThu") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle Width="80px" />
             </asp:TemplateField>
              <asp:TemplateField HeaderText="Chi Phí Phục Vụ">
                 <ItemTemplate>
                     <asp:Label ID="Label9" runat="server" Text='<%# Bind("chiPhiDichVuThucTe") %>'></asp:Label>
                 </ItemTemplate>
                  <EditItemTemplate>
                      <asp:TextBox ID="txtchiPhi" runat="server" Width="80px" Text='<%# Bind("chiPhiDichVuThucTe")%>'></asp:TextBox>
                  </EditItemTemplate>
                 <ItemStyle Width="80px" />
             </asp:TemplateField>
             <asp:TemplateField ShowHeader="False">
                 <EditItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="True" 
                         CommandName="Update" ImageUrl="~/images/save.gif" Text="Update" 
                         ToolTip="Lưu Lại" />
                     &nbsp;<asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" 
                         CommandName="Cancel" ImageUrl="~/images/delete.gif" Text="Cancel" 
                         ToolTip="Hoãn Lại" />
                 </EditItemTemplate>
             
                 <ItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                         CommandName="Edit" ImageUrl="~/images/edit.gif" Text="Edit" 
                         ToolTip="Cập Nhật" />
                 
                 </ItemTemplate>
                 <ItemStyle Width="30px" />
             </asp:TemplateField>
    </Columns>
         <EditRowStyle BackColor="#FFFDDF" />
        <FooterStyle BackColor="#FFFDDF" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>
    </div>
   
</div>

</asp:Content>
